package com.project.nimsen.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.project.nimsen.util.FileVisitUtil;
import com.project.jdbc.web.BaseMVCAction;
/**
 * 映射所有网站里访问的文件
 * */
@Controller
@RequestMapping(value ="/file")
public class FileVisitControl extends BaseMVCAction {
	@RequestMapping(value = "/*")
	public void visit(HttpServletRequest request, HttpServletResponse response){
		try {
			FileVisitUtil.putoutFile(request, response);
		} catch (Exception e) {
			logger.error(e);
			e.printStackTrace();
		}
	}
}
